import React from 'react';
import { CardWrapper } from './styledCard';
import { string,array } from "prop-types"

const Card = ({
    bgColor,
    padding,
    height,
    borderRadius,
    children,
}) => {
    return (
        <CardWrapper
            height={height}
            bgColor={bgColor}
            padding={padding}
            borderRadius={borderRadius}
        >
            {children}
        </CardWrapper>
    );
}

Card.propTypes = {
    width: string,
    height: string,
    bgColor: string,
    padding: string,
    borderRadius:string,
    children:array,
}

export default Card;